<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://www.myce.net.cn/ce-tag" prefix="ce"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/messages.jsp"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="favicon.ico ">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>物业管理系统</title>
<link href="${ctx}/styles/header.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/index.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/scripts/msgtips/MsgTips.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/scripts/shortcutmenu/shortcut.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${ctx}/scripts/div/css/window.css" />
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script language="JavaScript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/msgtips/MsgTips.js"></script>
<script type="text/javascript" src="${ctx}/scripts/shortcutmenu/shortcut.js"></script>
<script type="text/javascript" src="${ctx}/scripts/msgtips/RemTips.js"></script>
<script language="JavaScript" src="${ctx}/scripts/header.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/toolBarOperation.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/loadXml/loadXml.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/ajaxtool.js"></script>
<script type='text/javascript' src='dwr/interface/Back_forward.js'></script>
<script type='text/javascript' src='dwr/engine.js'></script>

<script language="javascript" type="text/javascript" src="${ctx}/scripts/div/ext-base.js"></script>
<script language="javascript" type="text/javascript" src="${ctx}/scripts/div/ext-all-co.js"></script>
<script language="javascript" type="text/javascript" src="${ctx}/scripts/div/window.js"></script>


<script language="javascript">
/*
document.onkeydown = function() {if(event.keyCode==116)event.keyCode=0,event.returnValue=false;}
document.oncontextmenu = function() {return false;}
*/
</script>
<script type="text/javascript">
function gogogo(id,url){
    if(url==null || url==''){

	    if(id.length==2){
	    document.getElementById(id).onclick();
	    }

	    if(id.length==4){
	     flipMenu('childBar_'+id.substring(1,2),id.substring(0,2));
	     document.getElementById(id).onclick();
	    }

	    if(id.length==6){
	      flipMenu('childBar_'+id.substring(1,2),id.substring(0,2));
	      turnChoose(document.getElementById(id.substring(0,4)),'childBar_'+id.substring(1,2));
	      document.getElementById(id).onmousedown();

	    }
	     document.main.focus();
    }else{


        if(id.length==2){
         flipMenu('childBar_'+id.substring(1,2),id.substring(0,2));
        }

         if(id.length==4){
          flipMenu('childBar_'+id.substring(1,2),id.substring(0,2));
	      turnChoose(document.getElementById(id.substring(0,4)),'childBar_'+id.substring(1,2));
         }

         if(id.length==6){
          flipMenu('childBar_'+id.substring(1,2),id.substring(0,2));
	      turnChoose(document.getElementById(id.substring(0,4)),'childBar_'+id.substring(1,2));
         }

         document.main.focus();
         document.getElementById("main").src=url;

    }
}


function closeforwindow(){
window.location.href="${ctx}/loginres.jsp";

}
function max_window_show(targeturl){

	newwin=window.open("","","resizable")
	if (document.all){
	newwin.moveTo(0,0)
	newwin.resizeTo(screen.width,screen.height)
	}
	newwin.location=targeturl
}

function changeIframeUrl(iframeId, url){
if(url=='')return false;
	var iframe = document.getElementById(iframeId);
	if(url == null || url == "null"){
		url = iframe.src + "&time="+new Date().getTime();
	}
	if(iframe != null)
		iframe.src = url;
}
 var flag=0;
 var backn=0;
 var listsize=0;
function change1(){
 flag=1;
}
function change2(){
	flag=0;
}

function record(id,state){
 if(flag==0){
	  if(state==1){
	  	 Back_forward.record(id,pageno);
	     backn=0;
	  }
  }
  else{
 ///alert("no record");
  }
}
function pageno(data){
  listsize=data;
}

function back1(){
 if(listsize<=0){
  return;
  }
 if(backn<listsize-1){
    backn=backn+1;
  }else{
  backn=backn+0;
  }
  Back_forward.hback(backn,gopageback);
 }
function gopageback(data){
	jumpToMenuPage(data);
 }

 function forward1(){
  if(listsize<=0){
  	return;
  }
   backn=backn-1;
   if(backn<=0){
   backn=0;
   }
   Back_forward.hforward(backn,gopageforward);
 }
 function gopageforward(data){
  jumpToMenuPage(data);
 }


  function D_F5() {if (event.keyCode == 116)
                            {event.keyCode=0;event.returnValue = false}
  }

  function goHouseMainLine(){
   var url = "${ctx}/houseMainLin_houseMainLineAction.do?method=houseMainLineMain";
		windowOpen(url, "HouseMainLine", "房间详细资料", 650, 1000,true,"HouseMainLine");

  }

  function isForward(url,divId){

    if(url!='')return false;

  var divojb=document.getElementById(divId);

	if(divojb.getElementsByTagName("td").length>1){
	  var tdArray=divojb.getElementsByTagName("td");
	  tdArray[0].onmousedown();
	}

  }
 function changeDateRight(thiz){
 	var url = "${ctx}/common_dataRightAction.do?method=changePrecinetDateRight";
	var param = "precinctId="+thiz.value;
	new Ajax.Request(url,{method: 'post', parameters: param, onComplete: function(){
		var div2=document.getElementById('first');
    	div2.getElementsByTagName("td")[0].onclick();
		document.main.focus();
	}});
 }

</script>
</head>

<body onkeydown="D_F5()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="1" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="div_header">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="header">
          <tr>
            <td class="logo hand">&nbsp;</td>
            <td class="bg_header_right"><table width="100%" height="56" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="left" valign="bottom"><table border="0" cellpadding="0" cellspacing="0" class="ico_personal">
                      <pms:AuthTag authName="houseMainLin_houseMainLineAction.do?method=houseMainLineMain">
                      <tr>

                        <td class="btn_between_space">&nbsp;</td>

                         <td onMouseOut="outListTr1(this)" onClick="clickListTr1(this)" class="fastmenu_off"><a href="#" style="cursor: hand;" onFocus="this.blur()" onClick="goHouseMainLine()"><img src="${ctx}/images/ico_search_off.gif" alt="搜索" border="0"/></a>
                         </td>
                      </tr>
                      </pms:AuthTag>
                      <tr>
                        <td height="5"></td>
                      </tr>
                    </table>
                      </td>
                  <td align="right" valign="top"><table border="0" align="right" cellpadding="0" cellspacing="0" class="personal">
                      <tr>
                      <td>
						<c:if test="${showPrecinctList == 1}">
                      	<pms:unitedSelect
			             		name="precinctId"
			             		optionLabel="name"
			             		optionValue="keyword"
			             		dataList="${chargePrecinctList}"
			             		onChange="changeDateRight(this)"
			             		value="${currentPrecinct}"
			             		style="width:110px;background-color: #133016;color: #fff;border: 1px #fff solid;">
			            </pms:unitedSelect>
			            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			            </c:if>
                      </td>
                      <td>


                      </td>
<td>&nbsp;&nbsp;</td>
                        <td><img src="images/ico_human.gif" border="0" align="absmiddle"/>&nbsp;&nbsp;您好&nbsp;&nbsp;${loginUser.employeeName}&nbsp;&nbsp;欢迎使用本系统</td>
                        <td>&nbsp;</td>
                        <td class="exit" style="cursor:hand"><img src="images/ico_exit.gif" align="absmiddle"/><a href="${ctx}/loginout.do" border="0" ><font color="#ffffff">注销</font></a></td>
                        <td>&nbsp;</td>

                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
    <td class="bg_nav_first">
      	<ce:menuBar
      	id="first"
      	menuDatas="${menuList}"
		className="nav_first"
      	var="item">

	      	<ce:menuItem
	      	id="${item.menucode}"
	      	menuName="${item.menutext}"
	      	splitClassName="sep"
	      	onClick="changeIframeUrl('main','${item.pagelinker}');flipMenu('${item.childBarId}','${item.menucode}');record('${item.menucode}','${item.isend}')"
            pageLinker="${item.mainpagelinker==null?'':item.pagelinker}"
	      	>
      		</ce:menuItem>

      	</ce:menuBar>
 <td >


	</td>

</tr>
<tr><td class="bg_nav_second" >
		<c:forEach var="menuBar" items="${menuList}">

      	<ce:menuBar
      	id="${menuBar.childBarId}"
      	menuDatas="${menuBar.secMenuitemVOs}"
		display="false"
      	var="item"
		className="nav_second"
      	>

      	<ce:menuItem
      	id="${item.menucode}"

      	menuName="${item.menutext}"

		splitClassName="sepII"

		onDblClick="isForward('${item.pagelinker}','${item.childBarId}_div');"

      	onClick="changeIframeUrl('main','${item.pagelinker}');record('${item.menucode}','${item.isend}');turnChoose(this,'${menuBar.childBarId}');showThird('${item.childBarId}_div',this);"

      	pageLinker="${item.mainpagelinker==null?'':item.pagelinker}"
      	>

      	</ce:menuItem>
      	</ce:menuBar>

		<c:forEach var="item" items="${menuBar.secMenuitemVOs}">
		<ce:menuBar
      	id="${item.childBarId}"
      	menuDatas="${item.secMenuitemVOs}"
      	var="lvl3"
		className="nav_third"
		popupMenu="true"
		popupClass="dropMenu"
      	>

      	<ce:menuItem
      	id="${lvl3.menucode}"
      	pageLinker="${lvl3.pagelinker}"
      	menuName="${lvl3.menutext}"
      	target="main"
		onMousedown="linkTarget('${lvl3.pagelinker}');record('${lvl3.menucode}','${lvl3.isend}')"
      	>
      	</ce:menuItem>
      	</ce:menuBar>
		</c:forEach>

		</c:forEach>

</td></tr>
    </table></td>
  </tr>
  <tr>
    <td><iframe  id="main" name="main" src="#" class="ifra_size" scroll="no" frameborder="0"></iframe>
    <script language="javascript">
	var div111=document.getElementById('first');
    div111.getElementsByTagName("td")[0].onclick();
	document.main.focus();
	</script></td>
  </tr>
  <tr>
    <td height="16"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bg_out" id="div_footer">
      <tr>
        <td class="bg_in"> </td>
      </tr>
    </table></td>
  </tr>
</table>

</body>


<script type="text/javascript">


var dialog = new Dialog();
	dialog.titleKey="\u77ed\u6d88\u606f";
	dialog.closeKey="\u5173\u95ed";
	dialog.forwardKey="\u4e0a\u4e00\u6761";
	dialog.backwardKey="\u4e0b\u4e00\u6761";
	dialog.remindKey="\u7a0d\u540e\u63d0\u9192...";
//	dialog.remindTime=30000;
	dialog.isWinOpen=false;
	dialog.isStep=true;
	dialog.url="${ctx}/msgTipsAction.do?method=msgTips";
	//alert(dialog.url);
	dialog.width= 200 ;
	dialog.height=130 ;
	window.onresize = dialog.move;
	window.onscroll = dialog.move;
	//window.setInterval("ajaxSendRequest(dialog);",5000);



function createTimer(node , i){

    var timer;
	var __sto = setTimeout;
	window.mySetTimeout = function(callback,timeout,param)
	{
	    var args = Array.prototype.slice.call(arguments,2);
	    var _cb = function()
	    {
	        callback.apply(null,args);
	    }

	    timer = __sto(_cb,timeout);
	}

	//window.mySetTimeout(show,node.timeOut * 1000, node , i );
	return timer;

}
 //mySend_request("${ctx}/indexAction.do?method=getRems" , 2);  //初始化
 //document.getElementById("07").onclick();
 //document.getElementById("0702").onclick();



</script>


</html>